


public class ThreadTest {
    public static void main(String[] args) {
        MThreader mt = new MThreader();
        Thread t1 = new Thread(mt);
        Thread t2 = new Thread(mt);
        t1.start();
        t2.start();
    }


}


class MThreader implements Runnable{

    public void run(){
        for(int i = 0; i<100; i++){
            if(i % 2 == 0){
                System.out.println(Thread.currentThread().getName()+":"+i);
            }

        }
    }

}

